﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true"
    CodeBehind="teste.aspx.cs" Inherits="SisEagle.View.Web.teste1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.toastmessage.js" type="text/javascript"></script>
    <link href="Style/main/resources/css/jquery.toastmessage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">

        function showSuccessToast() {
            $().toastmessage('showSuccessToast', "Registro Salvo com Sucesso...");
        }
        function showStickySuccessToast() {
            $().toastmessage('showToast', {
                text: 'Registro Salvo com Sucesso - Dialogo Fixo',
                sticky: true,
                position: 'top-right',
                type: 'success',
                closeText: '',
                close: function () {
                    console.log("toast is closed ...");
                }
            });

        }
        function showNoticeToast() {
            $().toastmessage('showNoticeToast', "Notice  Dialog ");
        }

        function showStickyNoticeToast() {
            $().toastmessage('showToast', {
                text: 'Notice Dialog Fixo',
                sticky: true,
                position: 'top-left',
                type: 'notice',
                closeText: '',
                close: function () { console.log("toast is closed ..."); }
            });
        }
        function showWarningToast() {
            $().toastmessage('showWarningToast', "Warning Dialog ");
        }

        function showStickyWarningToast() {
            $().toastmessage('showToast', {
                text: 'Warning Dialog Fixo',
                sticky: true,
                position: 'middle-right',
                type: 'warning',
                closeText: '',
                close: function () {
                    console.log("toast is closed ...");
                }
            });
        }

        function showErrorToast() {
            $().toastmessage('showErrorToast', "Error Dialog  ...");
        }

        function showStickyErrorToast() {
            $().toastmessage('showToast', {
                text: 'Error Dialog Fixo',
                sticky: true,
                position: 'center',
                type: 'error',
                closeText: '',
                close: function () {
                    console.log("toast is closed ...");
                }
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <span class="description">Dialogo de Sucesso</span> <a href="javascript:showSuccessToast();">
            Temporario </a>|<a href="javascript:showStickySuccessToast();"> Fixo </a>
    </p>
    <p>
        <span class="description">Dialogo de Informação</span> <a href="javascript:showNoticeToast();">
            Temporario </a>|<a href="javascript:showStickyNoticeToast();"> Fixo </a>
    </p>
    <p>
        <span class="description">Dialogo de Atenção </span><a href="javascript:showWarningToast();">
            Temporario </a>|<a href="javascript:showStickyWarningToast();">Fixo</a>
    </p>
    <p>
        <span class="description">Dialogo de Erro </span><a href="javascript:showErrorToast();">
            Temporario </a>|<a href="javascript:showStickyErrorToast();"> Fixo </a>
    </p>
    </div>
</asp:Content>
